<%@ Control Language="VB" AutoEventWireup="false" CodeFile="ctlRegistrarEntrada.ascx.vb" Inherits="Pages_Controls_ctlRegistrarEntrada" %>

<%@ Register Assembly="DevExpress.Web.ASPxEditors.v10.1, Version=10.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>


<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

<asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
        <dx:ASPxTextBox ID="txtPersonaID" runat="server" ClientVisible="False" Text="0"
            Width="170px">
        </dx:ASPxTextBox>
     
        <table>
            <tr>
                <td style="width: 142px; height: 21px;">
                </td>
                <td style="height: 21px">
                </td>
                <td style="height: 21px">
                </td>
                <td style="width: 7px; height: 21px;">
                </td>
            </tr>
            <tr>
                <td style="width: 142px">
                    <dx:ASPxRadioButtonList ID="optTipo" runat="server" CssFilePath="~/App_Themes/Youthful/{0}/styles.css"
                        CssPostfix="Youthful" Font-Bold="True" SpriteCssFilePath="~/App_Themes/Youthful/{0}/sprite.css"
                        TextSpacing="4px">
                        <Items>
                            <dx:ListEditItem Selected="True" Text="Por DNI" Value="1" />
                            <dx:ListEditItem Text="Por Codigo" Value="2" />
                        </Items>
                    </dx:ASPxRadioButtonList>
                    </td>
                <td>
                    <dx:ASPxTextBox ID="txtCodigoPersona" runat="server" CssFilePath="~/App_Themes/Youthful/{0}/styles.css"
                        CssPostfix="Youthful" SpriteCssFilePath="~/App_Themes/Youthful/{0}/sprite.css"
                        Width="170px">
                        <ValidationSettings>
                            <ErrorFrameStyle ImageSpacing="4px">
                                <ErrorTextPaddings PaddingLeft="4px" />
                            </ErrorFrameStyle>
                        </ValidationSettings>
                    </dx:ASPxTextBox>
                </td>
                <td>
                    <dx:ASPxButton ID="btnSeleccionar" runat="server" CssFilePath="~/App_Themes/Youthful/{0}/styles.css"
                        CssPostfix="Youthful" Font-Bold="True" Height="12px" OnClick="btnSeleccionar_Click"
                        SpriteCssFilePath="~/App_Themes/Youthful/{0}/sprite.css" Text="Cargar" Width="74px" AutoPostBack="False" CausesValidation="False">
                        <Image Url="~/Images/icons/page_copy.png">
                        </Image>
                    </dx:ASPxButton>
                </td>
                <td style="width: 7px">
                    <dx:ASPxButton ID="btnRegistrarInvitado" runat="server" CssFilePath="~/App_Themes/Youthful/{0}/styles.css"
                        CssPostfix="Youthful" Font-Bold="True" Height="12px" OnClick="btnRegistrarInvitado_Click"
                        SpriteCssFilePath="~/App_Themes/Youthful/{0}/sprite.css" Text="Registrar Invitado" Width="198px" AutoPostBack="False" CausesValidation="False">
                        <Image Url="~/Images/icons/page_copy.png">
                        </Image>
                    </dx:ASPxButton>
                </td>
            </tr>
        </table>
              
                         <table width="100%">
                             <tr>
                                 <td style="width: 321px; height: 26px">
                                 </td>
                                 <td style="width: 173px; height: 26px">
                                 </td>
                                 <td style="width: 573px; height: 26px">
                                 </td>
                                 <td style="font-size: 12pt; width: 22px; font-family: Times New Roman; height: 26px">
                                 </td>
                             </tr>
            <tr>
                <td style="height: 26px; width: 321px;">
                    &nbsp;
                    <dx:ASPxLabel ID="lblCodPersona" runat="server" Font-Bold="True" Text="Cod Persona:" ClientVisible="False">
                    </dx:ASPxLabel>
                </td>
                <td style="height: 26px; width: 173px;">
                    &nbsp;
                    <dx:ASPxTextBox ID="txtCodPersona" runat="server" ClientEnabled="False" CssFilePath="~/App_Themes/Youthful/{0}/styles.css"
                        CssPostfix="Youthful" SpriteCssFilePath="~/App_Themes/Youthful/{0}/sprite.css"
                        Width="170px" Text="0" ClientVisible="False">
                        <ValidationSettings>
                            <ErrorFrameStyle ImageSpacing="4px">
                                <ErrorTextPaddings PaddingLeft="4px" />
                            </ErrorFrameStyle>
                        </ValidationSettings>
                    </dx:ASPxTextBox>
                </td>
                <td style="height: 26px; width: 573px;">
                    &nbsp;
                </td>
                <td style="width: 22px; height: 26px; font-size: 12pt; font-family: Times New Roman;">
                    &nbsp;
                </td>
            </tr>
            <tr style="font-size: 12pt; font-family: Times New Roman">
                <td style="width: 321px">
                    &nbsp;<dx:ASPxLabel ID="lblNombre" runat="server" CssFilePath="~/App_Themes/Youthful/{0}/styles.css"
                        CssPostfix="Youthful" Font-Bold="True" Text="Nombre :">
                    </dx:ASPxLabel>
                </td>
                <td style="width: 173px">
                    &nbsp;<dx:ASPxTextBox ID="txtNombres" runat="server" CssFilePath="~/App_Themes/Youthful/{0}/styles.css"
                        CssPostfix="Youthful" SpriteCssFilePath="~/App_Themes/Youthful/{0}/sprite.css"
                        Width="170px">
                        <ValidationSettings ErrorText="Ingrese Nombre" SetFocusOnError="True">
                            <ErrorFrameStyle ImageSpacing="4px">
                                <ErrorTextPaddings PaddingLeft="4px" />
                            </ErrorFrameStyle>
                            <RequiredField ErrorText="Ingrese Nombre" IsRequired="True" />
                        </ValidationSettings>
                    </dx:ASPxTextBox>
                </td>
                <td style="width: 573px">
                    &nbsp;<dx:ASPxLabel ID="lblFoto" runat="server" CssFilePath="~/App_Themes/Youthful/{0}/styles.css"
                        CssPostfix="Youthful" Font-Bold="True" Text="Foto:">
                    </dx:ASPxLabel>
                </td>
                <td style="width: 22px" rowspan="3"  align="center" class="imagePreviewCell">
                    
                            <img src="../Content/ImagePreview.gif" id="previewImage" alt="" style="width: 1px; height: 13px" />&nbsp;<dx:ASPxImage
                                ID="imgFoto" runat="server" ImageUrl="~/Pages/Content/ImagePreview.gif"
                                Width="87px">
                            </dx:ASPxImage>
                    &nbsp;&nbsp;

                </td>
            </tr>
            <tr style="font-size: 12pt; font-family: Times New Roman">
                <td style="width: 321px">
                    &nbsp;<dx:ASPxLabel ID="lblApellidoPaterno" runat="server" CssFilePath="~/App_Themes/Youthful/{0}/styles.css"
                        CssPostfix="Youthful" Font-Bold="True" Text="Apellido Paterno:">
                    </dx:ASPxLabel>
                </td>
                <td style="width: 173px">
                    &nbsp;<dx:ASPxTextBox ID="txtApellidoPaterno" runat="server" CssFilePath="~/App_Themes/Youthful/{0}/styles.css"
                        CssPostfix="Youthful" SpriteCssFilePath="~/App_Themes/Youthful/{0}/sprite.css"
                        Width="170px">
                        <ValidationSettings SetFocusOnError="True">
                            <ErrorFrameStyle ImageSpacing="4px">
                                <ErrorTextPaddings PaddingLeft="4px" />
                            </ErrorFrameStyle>
                            <RequiredField ErrorText="Ingrese Apellido" IsRequired="True" />
                        </ValidationSettings>
                    </dx:ASPxTextBox>
                </td>
                <td style="width: 573px">
                </td>
            </tr>
            <tr style="font-size: 12pt; font-family: Times New Roman">
                <td style="width: 321px">
                    &nbsp;<dx:ASPxLabel ID="lblApellidoMaterno" runat="server" CssFilePath="~/App_Themes/Youthful/{0}/styles.css"
                        CssPostfix="Youthful" Font-Bold="True" Text="Apellido Materno:" Width="112px">
                    </dx:ASPxLabel>
                </td>
                <td style="width: 173px">
                    &nbsp;<dx:ASPxTextBox ID="txtApellidoMaterno" runat="server" CssFilePath="~/App_Themes/Youthful/{0}/styles.css"
                        CssPostfix="Youthful" SpriteCssFilePath="~/App_Themes/Youthful/{0}/sprite.css"
                        Width="170px">
                        <ValidationSettings>
                            <ErrorFrameStyle ImageSpacing="4px">
                                <ErrorTextPaddings PaddingLeft="4px" />
                            </ErrorFrameStyle>
                        </ValidationSettings>
                    </dx:ASPxTextBox>
                </td>
                <td style="width: 573px">
                </td>
            </tr>
            <tr style="font-size: 12pt; font-family: Times New Roman">
                <td style="width: 321px; height: 23px;">
                    <dx:ASPxLabel ID="lblTipoDocumento" runat="server" CssFilePath="~/App_Themes/Youthful/{0}/styles.css"
                        CssPostfix="Youthful" Font-Bold="True" Text="Tipo Documento :">
                    </dx:ASPxLabel>
                </td>
                <td style="width: 173px; height: 23px">
                    <dx:ASPxComboBox ID="cmbTipoDocumento" runat="server" CssFilePath="~/App_Themes/Youthful/{0}/styles.css"
                        CssPostfix="Youthful" LoadingPanelImagePosition="Bottom" ShowShadow="False" SpriteCssFilePath="~/App_Themes/Youthful/{0}/sprite.css"
                        ValueType="System.String">
                        <Items>
                            <dx:ListEditItem Text="DNI" Value="DNI" />
                            <dx:ListEditItem Text="CE" Value="CE" />
                        </Items>
                        <LoadingPanelImage Url="~/App_Themes/Youthful/Editors/Loading.gif">
                        </LoadingPanelImage>
                        <ValidationSettings>
                            <ErrorFrameStyle ImageSpacing="4px">
                                <ErrorTextPaddings PaddingLeft="4px" />
                            </ErrorFrameStyle>
                        </ValidationSettings>
                    </dx:ASPxComboBox>
                </td>
                <td style="width: 573px; height: 23px;">
                    &nbsp;<dx:ASPxLabel ID="lblNumeroDocumento" runat="server" CssFilePath="~/App_Themes/Youthful/{0}/styles.css"
                        CssPostfix="Youthful" Font-Bold="True" Text="Numero Documento:" Width="141px">
                    </dx:ASPxLabel>
                </td>
                <td style="width: 22px; height: 23px;">
                    &nbsp;<dx:ASPxTextBox ID="txtNumeroDocumento" runat="server" CssFilePath="~/App_Themes/Youthful/{0}/styles.css"
                        CssPostfix="Youthful" SpriteCssFilePath="~/App_Themes/Youthful/{0}/sprite.css"
                        Width="170px">
                        <ValidationSettings>
                            <ErrorFrameStyle ImageSpacing="4px">
                                <ErrorTextPaddings PaddingLeft="4px" />
                            </ErrorFrameStyle>
                            <RequiredField ErrorText="*Ingrese numero de documento" IsRequired="True" />
                        </ValidationSettings>
                    </dx:ASPxTextBox>
                </td>
            </tr>
                             <tr style="font-size: 12pt; font-family: Times New Roman">
                                 <td style="width: 321px; height: 23px">
                                     <dx:ASPxLabel ID="lblObservacion" runat="server" CssFilePath="~/App_Themes/Youthful/{0}/styles.css"
                        CssPostfix="Youthful" Font-Bold="True" Text="Observacion :" Width="96px">
                                     </dx:ASPxLabel>
                                 </td>
                                 <td colspan="3" style="height: 23px">
                                     &nbsp;<dx:ASPxTextBox ID="txtObservacion" runat="server" CssFilePath="~/App_Themes/Youthful/{0}/styles.css"
                        CssPostfix="Youthful" SpriteCssFilePath="~/App_Themes/Youthful/{0}/sprite.css"
                        Width="170px">
                                         <ValidationSettings>
                                             <ErrorFrameStyle ImageSpacing="4px">
                                                 <ErrorTextPaddings PaddingLeft="4px" />
                                             </ErrorFrameStyle>
                                         </ValidationSettings>
                                     </dx:ASPxTextBox>
                                 </td>
                             </tr>
                             <tr style="font-size: 12pt; font-family: Times New Roman">
                                 <td colspan="4" style="height: 26px">
                                     &nbsp;</td>
                             </tr>
        </table>
        <table style="width: 291px; font-size: 12pt; font-family: Times New Roman;">
            <tr>
                <td style="height: 19px; width: 4275px;">
                    &nbsp;</td>
                <td style="width: 549px; height: 19px">
                    <dx:ASPxButton ID="btnGrabar" runat="server" CssFilePath="~/App_Themes/Youthful/{0}/styles.css"
                        CssPostfix="Youthful" Font-Bold="True"  SpriteCssFilePath="~/App_Themes/Youthful/{0}/sprite.css"
                        Text="Grabar" OnClick="btnGrabar_Click">
                        <Image Url="~/Images/icons/page_save.png">
                        </Image>
                    </dx:ASPxButton>
                </td>
            </tr>
        </table>
        <dx:ASPxLabel ID="lblMensaje" runat="server" Visible="False" Width="689px" ForeColor="#CC0000">
                                     </dx:ASPxLabel>
         
    </ContentTemplate>
</asp:UpdatePanel>
